package com.zhuzi.dto.sh;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author zhuzi
 * 2024/3/31 12:19
 */
public interface ShDTO {
    @Data
    @Accessors(chain = true)
    class Base {

        private Long id;


        private String bondId;


        /**
         * 是事实
         */
        private String bondName;

        private LocalDate date;

        //"开盘价")
        private BigDecimal beginPrice;

        //"收盘价")
        private BigDecimal endPrice;

        //"涨跌幅度")
        private BigDecimal incrPrice;

        //"涨跌幅")
        private BigDecimal incrAmount;

        //"最低价")
        private BigDecimal minPrice;

        //"最高价")
        private BigDecimal maxPrice;
        //"成交金量(手)")
        private BigDecimal volumes;
        //"成交金额(万)")
        private BigDecimal volume;
    }

    @Data
    @Accessors(chain = true)
    class IncrCumt extends Base implements Serializable {
        /**
         * 30天内盘中最高
         */
        private BigDecimal maxPrice30;
        /**
         * 30天内最低收盘价
         */
        private BigDecimal minEnd30;
        /**
         * 30天内价格百分比
         */
        private BigDecimal cumt;
        /**
         * 30天内脉冲>3%
         */
        private Integer incrc3;
        /**
         * 0天内脉冲>3%
         */
        private Integer incrc5;
    }
}
